const ctx = require.context('./', true, /\.vue$/)

let components = []

ctx.keys.forEach(key => {
  let component = ctx(key).default
  components.push({
    path: component.name,
    component: component
  })
})

export default components